package mc.support.zmq.err;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: Francis Yuen    <br/>
 * Date: 2014-10-29  <br/>
 */
public class ProtoException extends RuntimeException {

    public static final int INVALID_PROTO_VERSION = -1;
    public static final int NO_AVAILABLE_HANDLER = -2;

    public static final int UNEXPECTED_ERROR = -255;

    private int errorNo;

    public int getErrorNo() {
        return errorNo;
    }

    public void setErrorNo( int errorNo ) {
        this.errorNo = errorNo;
    }

    public ProtoException( String message, int errorNo ) {
        super( message );
        this.errorNo = errorNo;
    }

    public ProtoException() {
        super();
    }

    public ProtoException( String message ) {
        super( message );
    }

    public ProtoException( String message, Throwable cause ) {
        super( message, cause );
    }

}
